package locacao.apresentacao.bd;

import java.sql.Connection;

import locacao.negocio.bo.ServicoBO;

public class ServicoBD {

	private ServicoBO servicoBO;
	
	public ServicoBD() {	
		servicoBO = new ServicoBO();
	}		

	public void addServico(Integer idServico, String descricaoServico, float valorUnitario){
		servicoBO.addServico(idServico, descricaoServico, valorUnitario);
	}

		public void updateServico(Integer idServico, String descricaoServico, float valorUnitario){
		servicoBO.updateServico(idServico,descricaoServico, valorUnitario);			
	}
		
	public void excludeServico(int idVeiculo){			
		servicoBO.excludeServico(idVeiculo);
	}
		
    public String[] getInfoServicos(){    
    	return servicoBO.getInfoServicos();
    }
    
    public String[] getPesquisaServicos(Integer id){
    	return servicoBO.getPesquisaServicos(id);
    }

	 public Connection gerarRelatorioServicos(){
		 return servicoBO.gerarRelatorioServicos();
	 }
	
}
